require('LXMineVideoModel,NSString,ApplicationContext,UIImage');
defineClass('LiveMineBrowserHistoryViewController', {
            getDataFromDB: function() {
            
            var deleteWhere = "news_type = '6'";
            LXMineVideoModel.getUsingLKDBHelper().deleteWithClass_where(LXMineVideoModel.class(), deleteWhere);
            
            var orderBy = "pdate desc";
            var where = NSString.stringWithFormat("uid = '%@'", ApplicationContext.shareInstance().loginUser().uid());
            var temp = LXMineVideoModel.getUsingLKDBHelper().search_where_orderBy_offset_count(LXMineVideoModel.class(), where, orderBy, self.valueForKey("mPage") * 10, 10);
            self.mArray().addObjectsFromArray(temp);
            self.mTableView().reloadData();
            if (self.mArray().count() == 0) {
            self.displayTipsView(2);
            self.tipsView().tipImageView().setImage(UIImage.imageNamed("living_my_no_movie"));
            self.tipsView().tipLab().setText("浏览的视频会保存在这里哦~");
            } else {
            self.tipsView().setHidden(true);
            if (temp.count() < 10) {
            self.mTableView().mj__footer().endRefreshingWithNoMoreData();
            } else {
            var page = self.valueForKey("mPage");
            self.setValue_forKey(page+1, "mPage")
            self.mTableView().mj__footer().endRefreshing();
            }
            }
            self.showDialog(false);
            self.loadingView().removeFromSuperview();

            },
            });

require('QHStatManager,NSString,LXNewsBaseModel,LXUserService');
defineClass('LXUserLiveVideoController', {
            tableView_didSelectRowAtIndexPath: function(tableView, indexPath) {
            var data = self.valueForKey("mArray");
            var model = data.objectAtIndex(indexPath.section());
            
            if (self.isMyLiveVideo()) {
            QHStatManager.onTimeEvent("zpd_my_video_item");
            }
            
            var temp = model.getLXNewsBaseModel();
            temp.setNews__data(NSString.stringWithFormat("{ \"live_id\":\"%@\"}", model.video__key()));
            LXUserService.jumpToNewsDetailViewControllerWithNewsModel_channelModel(temp, null);
            
            },
            });